package ex_from_web;

import javax.swing.JFrame;
import javax.swing.JLabel;

//import statements
//Check if window closes automatically. Otherwise add suitable code
@SuppressWarnings("serial")
public class swing_1 extends JFrame {

	public static void main(String args[]) {
		new swing_1();
	}

	swing_1() {
		JLabel jlbHelloWorld = new JLabel("Hello World");
		this.add(jlbHelloWorld);
		setSize(1000, 200);
		// pack();
		setVisible(true);
		
	}
}